var aUi = aUi || {};
aUi.receipting = {
	// 增加仓库
	_addrecordList: function(data) {
		var html = '<li data-id="'+data.id +'" class="mui-table-view-cell mui-media item-cell" style="display:;">'+
			'<div class="content-top">'+
				'<div class="top-title">采购单号：'+data.warehousingno+'</div>'+
			'</div>'+
			'<div class="top-line"></div>'+
			'<div class="content-mid">'+
				'<div class="left-image">'+
					'<img class="" src="../../../../images/comman/icon_location.png">'+
				'</div>'+
				'<div class="mid-text">'+
					'<div class="left-text">'+
						'<p class="cell-title">'+data.locatorname+'</p>'+
						'<p class="cell-time">'+data.locatorcode+'</p>'+
					'</div>'+
					'<div class="right-text">'+
						'<p >'+data.stateName+'</p>'+
						'<p ></p>'+
					'</div>'+
				'</div>'+
			'</div>'+
			'<div class="top-line2"></div>'+
			'<div class="bottom-content">'+
				'<div class="user">'+
					'<div class="avarimage">'+
						'<img class="" src="../../../../images/me/icon_avatar.png">'+
					'</div>'+
					'<div class="name">'+data.auditor+'</div>'+
				'</div>'+
				'<div class="time">'+data.createtime+'</div>'+
			'</div>'+
		'</li>';
		return html;
	},
	
	
	_addrecordList2: function(data) {
		var html = '<li data-id="'+data.id +'" class="mui-table-view-cell mui-media item-cell" style="display:;">'+
			'<div class="content-top">'+
				'<div class="top-title">商品编码：'+data.commoditybar+'</div>'+
			'</div>'+
			'<div class="top-line"></div>'+
			'<div class="content-mid">'+
				'<div class="left-image">'+
					'<img class="" src="../../../../../images/comman/icon_materials.png">'+
				'</div>'+
				'<div class="mid-text">'+
					'<div class="left-text">'+
						'<p class="cell-title">'+data.commodityname+'</p>'+
						'<p class="cell-time">'+data.manufacturer+'</p>'+
					'</div>'+
					'<div class="right-text">'+
						'<p >'+data.specification+'</p>'+
						'<p ></p>'+
					'</div>'+
				'</div>'+
			'</div>'+
			'<div class="top-line2"></div>'+
			'<div class="bottom-content">'+
				'<div class="user">'+
					'<div class="avarimage">'+
						'<img class="" src="../../../../../images/me/icon_avatar.png">'+
					'</div>'+
					'<div class="name">'+data.creator+'</div>'+
				'</div>'+
				'<div class="time">'+data.createtime+'</div>'+
			'</div>'+
		'</li>';
		return html;
	},
	
	
	
	recordList: function(list) {
		var html = "";
		for (var i = 0; i < list.length; i++) {
			var data = list[i];
			html += this._addrecordList(data);
		}
		return html;
	},
    
	recordListLevel2: function(list) {
		var html = "";
		for (var i = 0; i < list.length; i++) {
			var data = list[i];
			html += this._addrecordList2(data);
		}
		return html;
	},
};
